//1像素下边框
.border-1px-bottom(@color) {
  position: relative;
  &:after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-top: 1px solid @color;
    content: "";
  }
}
//1像素上边框
.border-1px-top(@color) {
  position: relative;
  &:before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-top: 1px solid @color;
    content: "";
  }
}
//1像素右边框
.border-1px-right(@color) {
  position: relative;
  &:before {
    position: absolute;
    top:0;
    right: 0;
    height: 100%;
    border-right: 1px solid @color;
    content: "";
  }
}
//1像素左边框
.border-1px-left(@color) {
  position: relative;
  &:before {
    position: absolute;
    top:0;
    left: 0;
    height: 100%;
    border-right: 1px solid @color;
    content: "";
  }
}

.border-none{
  &:before{
    border-top:none !important;
  }
  &:after{
    border-top:none !important;
  }
}

.bg-img(@urlStr) {
  background-image: url("../image/@{urlStr}@2x.png");
  @media only screen and (-webkit-min-device-pixel-ratio: 3) {
    background-image: url("../image/@{urlStr}@3x.png");
  }
  @media only screen and (min-device-pixel-ratio: 3) {
    background-image: url("../image/@{urlStr}@3x.png");
  }
}